import "./cinlist.css"

function Cinlist({ tCinema, ticketFlag }) {

    return (
        <ul>
            {tCinema.length>0 && (tCinema.map((item, index) => {
                return (
                    <li className="cin_list" key={index}>
                        <div className="cinema-info">
                            <h3>{item.name}</h3>
                            {ticketFlag == 2 && (<span> 2D通兑票 | 3D通兑票 </span>)}
                            <span>{item.address}</span>
                        </div>
                        <div className="cinema-info-rt">
                            {ticketFlag == 1 && (<span >￥{item.lowPrice / 100} 起</span>)}
                            {ticketFlag == 2 && (<img src="@/assets/gpsAddress.png" alt="" />)}
                            {ticketFlag == 2 && (<span className="specite">距离未知</span>)}
                            {ticketFlag == 1 && (<span className="specite">{item.districtName}</span>)}
                        </div>
                    </li>
                )
            }))}
        </ul>
    )
}

export default Cinlist